<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下前台</title>
    <link rel="icon" href="/zwtx/public/images/tx.ico" type="image/x-icon" style="width: 50px;height: 50px"/>
    <include file="Public/head"/>




    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin" style=";background-image:url(__PUBLIC__/images/pic/{$upic[0][bgphoto]});;width: 100%;height: 100%;background-size: 100%">
<include file="Public/pheader"/>
<div id="wrap" style=";margin-bottom: 60px">
    <div class="container-fluid">

        <div class="col-md-10 col-md-offset-1 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">个人中心</p>
            </h2>
            <hr>
        </div>
          <span style="display: none">{$upic[0]['username']}</span>
        <div class="col-md-4 col-md-offset-1" style="height: 350px;overflow: auto;border: solid 1px #60ffc8;border-radius: 5%;">
            <form method=post action="{:U('Personal/search')}" enctype="multipart/form-data"class="form-horizontal" style="margin-top: 1%;width: 50%">
                <div class="form-group col-md-12" >
                    <div class="col-md-10" style="margin-right: 0px;padding-right: 0px">
                        <input type="search" name="text" results=s style="float: right" class="form-control" id="" placeholder="请输入标题搜索" required>
                    </div>
                </div>
            </form>
            <h2 style="font-family: 楷体;text-align: center">我的发布</h2>
            <table class="table " style="border: none;margin-top: 2%">
                <thead >
                <tr >
                    <th style="text-align: center">序号</th>
                    <th style="text-align: center">类别名</th>
                    <th style="text-align: center">标题</th>
                    <th style="text-align: center">新闻图片</th>
                    <th style="text-align: center">操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="release" id="val">
                    <tr>
                        <td style="font-size: larger;color: #4f4f4f;text-align: center">{$val['col']}</td>
                        <td style="color: #4f4f4f;text-align: center">{$val['tid']}</td>
                        <td style="color: #4f4f4f;text-align: center">{$val['title']}</td>
                        <td style="text-align: center" >
                            <a href="{:U('Personal/detail')}?id={$val['id']}" >
                                <img src="__PUBLIC__/images/pic/{$val.n_pic}" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                            </a>
                        </td>

                        <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                            <a href="{:U('Personal/del')}?id={$vo['id']}"onClick="return confirm('确定要删除吗？')" >
                                <img src="__PUBLIC__/images/delete.png" width="20" height="20"></a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
        <div class="col-md-6 col-md-offset-0" style="height: 350px;overflow: auto;margin-left: 2%;border: solid 1px #60ffc8;border-radius: 5%;">
            <form method=post action="{:U('Personal/search')}" enctype="multipart/form-data"class="form-horizontal" style="margin-top: 1%;width: 30%">
                <div class="form-group col-md-12" >
                    <div class="col-md-10" style="margin-right: 0px;padding-right: 0px">
                        <input type="search" name="text" results=s style="float: right" class="form-control" id="title" placeholder="请输入标题搜索" required>
                    </div>
                </div>
            </form>
            <h2 style="font-family: 楷体;text-align: center">我的收藏</h2>
            <table class="table " style="border: none;margin-top: 2%">
                    <thead >
                    <tr >
                        <th style="text-align: center">序号</th>
                        <th style="text-align: center">类别名</th>
                        <th style="text-align: center">标题</th>
                        <th style="text-align: center">新闻图片</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="vo">
                        <tr>
                            <td style="font-size: larger;color: #4f4f4f;text-align: center">{$vo['code']}</td>
                            <td style="color: #4f4f4f;text-align: center">{$vo['tid']}</td>
                            <td style="color: #4f4f4f;text-align: center">{$vo['title']}</td>
                            <td style="text-align: center" >
                                <a href="{:U('Personal/detail')}?id={$vo['id']}" >
                                    <img src="__PUBLIC__/images/pic/{$vo.n_pic}" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                                </a>
                            </td>

                            <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                                <a href="{:U('Personal/del')}?id={$vo['id']}"onClick="return confirm('确定要删除吗？')" >
                                    <img src="__PUBLIC__/images/delete.png" width="20" height="20"></a>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
        </div>

        <div class="row" style="">
            <div class="col-md-4 col-md-offset-1" style="height: 300px;overflow: auto;border: solid 1px #60ffc8;border-radius: 5%;;margin-top: 2%">
                <h2 style="text-align: center;font-family: 楷体;font-size: 25px">添加请求</h2>
                <table class="table " style="border: none;margin-top: 2%">
                    <thead >
                    <tr >
                        <th style="text-align: center">序号</th>
                        <th style="text-align: center">请求用户</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="request" id="rt">
                        <tr>
                            <td style="font-size: larger;color: #4f4f4f;text-align: center">{$rt['cord']}</td>
                            <td style="color: #4f4f4f;text-align: center">{$rt['username']}</td>
                            <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                                <a href="{:U('Personal/adopt')}?fdid={$rt['fdid']}"onClick="return confirm('亲，确定添加该用户为好友吗？')" >
                                    <img src="__PUBLIC__/images/yes.png" width="20" height="20">
                                </a>
                                <a href="{:U('Personal/veto')}?fdid={$rt['fdid']}"onClick="return confirm('亲，确定拒绝添加该用户为好友吗？')" >
                                    <img src="__PUBLIC__/images/no.png" width="20" height="20">
                                </a>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
            <div class="col-md-6 col-md-offset-0" style="height: 300px;overflow: auto;margin-left: 2%;border: solid 1px #60ffc8;border-radius: 5%;;margin-top: 2%">
                <h2 style="text-align: center;font-family: 楷体;font-size: 25px">好友列表</h2>
                <table class="table " style="border: none;margin-top: 2%">
                    <thead >
                    <tr >
                        <th style="text-align: center">序号</th>
                        <th style="text-align: center">好友</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="friend" id="rf">
                        <tr>
                            <td style="font-size: larger;color: #4f4f4f;text-align: center">{$rf['corf']}</td>
                            <td style="color: #4f4f4f;text-align: center">
                                <a class="usershow" href="javascript:;" frienduid="{$rf['uid']}"  olduname="{$rf['username']}"  qq="{$rf['qq']}" intro="{$rf['intro']}">
                                    {$rf['username']}</a>
                            </td>
                            <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                                <a class="friend" href="javascript:;" fDid="{$rf['fdid']}" olduname="{$rf['username']}" >
                                    <img src="__PUBLIC__/images/comment.png" width="20" height="20">
                                </a>
                                <script>
                                    $('.friend').click(function () {
                                        var Fdid = $(this).attr('fDid');
                                        var Olduname = $(this).attr('olduname');
                                        var ac = "{:U('Personal/frcomment')}?fdid="+ Fdid;
                                        var str = " <form action='" + ac + "' method='POST'>" +
                                                "<div class='modal-body' style='padding-bottom:0px;background-color:white; '>" +
                                                " <div class='container-fluid'>" +
                                                "<div class='row' >" +
                                                "<div class='col-md-8  col-xs-8 col-sm-8 col-sm-offset-2 col-md-offset-2 col-xs-offset-2' id='modalMessag'>" +
                                                "<input type='text' name='frcomment' class='form-control ' style='margin: 0 auto'  placeholder='" +"留言&nbsp;" +Olduname + "' required>" +
                                                "</div>" + "</div>" + "</div>" +
                                                "<div class='modal-footer' style='margin-top: auto'>" + "<div class='container-fluid'>" +
                                                " <div class='row' style='padding-top: 10px'>" + "<div class='col-md-8 col-xs-8 col-sm-8 col-sm-offset-2 col-md-offset-2 col-xs-offset-2'>"
                                                + " <button type='submit' class='btn btn-primary btn-block' id='modalButton' >确&nbsp;定 </button>"
                                                + "</div> </div> </div> </div> </div> </form>";
                                        $('#ico').html(str);
                                        $('#fdcomment').modal('show');

                                    })
                                </script>

                                <a href="{:U('Personal/frienddel')}?fdid={$rf['fdid']}"onClick="return confirm('确定要删除该好友吗？')" >
                                    <img src="__PUBLIC__/images/delete.png" width="20" height="20">
                                </a>

                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
            <script>
                $('.usershow').click(function () {
                    var oldu = $(this).attr('olduname');
                    var Fuid = $(this).attr('frienduid');
                    var acc = "{:U('Fourm/addfriend')}?uid="+ Fuid;
                    var QQ = $(this).attr('qq');
                    var Intro = $(this).attr('intro');
                    var str = " <form  method='POST'>" +
                            "<div class='modal-body' style='padding-bottom:0px;background-color:white; '>" +
                            " <div class='container-fluid'>" +
                            "<div class='row' >" +
                            "<div class='col-md-11  col-xs-11 col-sm-11 col-sm-offset-3 col-md-offset-3 col-xs-offset-3' id='modalMessag'>" +
                            "<input type='text' name='qq' id='qq' class='form-control ' style='color: #4bffc1;width: 50%;text-align: center;font-family: 楷体;font-size: 25px;margin-top:3%'  placeholder='"+"QQ:"+QQ+"' >" +
                            "<textarea class='form-control' type='text' name='intro' id='intro' rows='3' style='color: #4bffc1;width: 50%;text-align: center;font-family: 楷体;font-size: 25px;margin-top:3%' placeholder='"+"自我介绍:"+Intro+"' ></textarea>"+
                            "<input type='text' name='name' id='name' class='form-control ' style='color: #4bffc1;width: 50%;text-align: center;font-family: 楷体;font-size: 25px;margin-top:3%'  placeholder='" +"用户名:" +oldu + "' >" +
                            "<a href='" + acc + "'>"+"<img src='__PUBLIC__/images/addfriend.png' style='width: 50px;height: 50px;margin-right: 0px;margin-top: 30px'>"+"</a>"+
                            "</div>" + "</div>" + "</div>" +
                            "<div class='modal-footer' style='margin-top: auto'>" + "<div class='container-fluid'>" +
                            " <div class='row' style='padding-top: 10px'>" + "<div class='col-md-8 col-xs-8 col-sm-8 col-sm-offset-2 col-md-offset-2 col-xs-offset-2'>"
                            + "</div> </div> </div> </div> </div> </form>";
                    $('#incoc').html(str);
                    $('#display').modal('show');

                })
            </script>


            <div class="modal fade bs-example-modal-sm" id="fdcomment" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true" style="margin-top: 8%">
                <div class="modal-dialog modal-sm" style="width: 40%">
                    <div class="modal-content" style="border-radius: 5px;">
                        <div class="modal-header"
                             style="padding-bottom:0px; border-bottom:0px;padding-left:0px;padding-right:0px;background-color: #ffffff">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="height:50px;">
                    <span class=""
                          style="height:50px;padding:10px 40px 10px 0px;background-image: url('__APP__/Public/assets_h/images/modal_close.png') ;background-size:100%;background-repeat: no-repeat"></span>
                            </button>
                            <div class="container-fluid">
                                <div class="row" style="margin-top: 5%">
                                    <div class="col-md-12  col-xs-12 col-sm-12 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                                         style="margin-bottom: 0px">
                                        <div class="col-md-6 col-xs-6 col-sm-6  col-md-offset-3 col-sm-offset-3 col-xs-offset-3">

                                            <h2 style="text-align: center;margin-bottom: 0px ">留言条</h2>
                                        </div>

                                    </div>
                                </div>
                            </div>

                            <div id="ico">

                            </div>

                        </div>


                    </div>
                </div>
            </div>


            <div class="modal fade bs-example-modal-sm" id="display" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                 aria-hidden="true" style="margin-top: 8%">
                <div class="modal-dialog modal-sm" style="width: 40%">
                    <div class="modal-content" style="border: solid 1px;border-radius: 10px;">
                        <div class="modal-header"
                             style="padding-bottom:0px; border-bottom:0px;padding-left:0px;padding-right:0px;background-color: #ffffff">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="height:50px;">
                    <span class=""
                          style="height:50px;padding:10px 40px 10px 0px;background-image: url('__APP__/Public/assets_h/images/modal_close.png') ;background-size:100%;background-repeat: no-repeat"></span>
                            </button>
                            <div class="container-fluid">
                                <div class="row" style="margin-top: 5%">
                                    <div class="col-md-12  col-xs-12 col-sm-12 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                                         style="margin-bottom: 0px">
                                        <div class="col-md-6 col-xs-6 col-sm-6  col-md-offset-3 col-sm-offset-3 col-xs-offset-3">
                                            <h2 style="font-family: 楷体;font-size: 35px;color: #adb2a9;text-align: center;margin-bottom: 0px ">个人名片</h2>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="incoc">
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-3"></div>
            <div class="col-md-4 col-md-offset-1" style="margin-top: 5%;text-align: center">
                <a href="{:U('Index/index')}" >
                    <img src="__PUBLIC__/images/back.png" width="40" height="40" style="margin-top: 2%;">
                </a>
                <a  class="modelshow"  href="javascript:;">
                    <button type="button" class="btn btn-info" style="margin-left: 5%;margin-top: 2%;">设置壁纸</button>
                </a>
                <a href="{:U('Fourm/index')}" >
                    <button type="button" class="btn btn-success" style="margin-top: 2%;">论坛</button>
                </a>
                <a href="{:U('Personal/delphoto')}" onClick="return confirm('确定要清空壁纸吗？')">
                    <button type="button" class="btn btn-danger" style="margin-top: 2%;">清空壁纸</button>
                </a>

            </div>
        </div>
        <script>
            $('.modelshow').click(function (){
                $('#myModal').modal('show');
              })
        </script>
        <include file="Public/addbgModal"/>

</div>
    </div>
</body>
</html>
